package com.ximu.service_edu.controller;

import com.ximu.common_utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * @projectName: guli
 * @package: com.ximu.service_edu.controller
 * @className: EduLoginController
 * @author: ximu
 * @description: TODO
 * @date: 2022/3/22 9:57
 * @version: 1.0
 */
@Api(tags = "登录")
@RestController
@CrossOrigin
@RequestMapping("/dev-api/service_edu/user")
public class EduLoginController {


    /*
     * @param :
      * @return Result
     * @author ximu
     * @description TODO
     * @date 2022/3/22 10:01
     */
    @ApiOperation(value = "登录")
    @PostMapping("login")
    public Result login(){

        return Result.ok().data("name","admin");
    }

    @ApiOperation(value = "信息")
    @GetMapping("info")
    public Result info(){
        return Result.ok().data("name","admin").data("avatar","https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif");
    }

}
